#include <bits/stdc++.h>
using namespace std;
int main() {
    int cnt = 0;
    while (1) {
        cnt++;
        system("makedata.exe");
        system("mycode.exe");
        clock_t st = clock();
        system("stdcode.exe");
        double t = 1.0 * (clock() - st) / CLOCKS_PER_SEC;
        printf("std run time=%.3lf\n", t);
        if (t >= 1) {
            printf("TLE on test %d\n", cnt);
            return 0;
        }
        if (system("fc myanswet.out stdanswet.out")) {
            printf("WA on test %d\n", cnt);
            return 0;
        }
        printf("AC on test %d\n", cnt);
    }
    return 0;
}
